package com.adminx.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;


@MappedSuperclass
public abstract class BaseEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;

	/** 创建时间 */
	@Column(name="create_date")
	private Date createDate = new Date();
	
	/** 更新时间 */
	@Column(name = "update_date")
	private Date updateDate = new Date(); 
	
	/**状态，用于标记逻辑删除*/
	@Column(name="status_code",updatable=false)
	private Integer status;
	
	/** 备注*/
	@Column(name="remark")
	private String remark;
	
	
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}
